/*
 * 环境变量配置
 */

const envConfig = {
  dev: {

    // 192.168.8.110:8062
    // 192.168.8.110:8062
    apiPrefix: 'http://192.168.8.110:8015', // 测试环境外网
    apiGateway: 'http://192.168.8.110:9015', // 测试环境埋点
    // apiPrefix: 'https://apiprod.moregold.top', // 生产app-api

    // apiPrefix: 'http://test-ph02appapi.myuangxpress.com:2062', // 测试环境
    // apiGateway: 'http://test-ph02gateway.myuangxpress.com:2087', // 测试环境网关
    // 加密相关参数
    encrypt: {
      supportSecurity: false,
      securitySign: 'kuZshtjxUgnHAu0qQX2JwVAOZIITcEyHhv0BrIV7DeI=',
      securityMerchantsNo: '20020000028',
      securityMerchantsCode: 'uzone'
    }
  },

  sat: {
    // apiPrefix: 'http://192.168.100.152:8062', // 测试环境
    // apiGateway: 'http://192.168.100.152:8087', // 测试环境网关
    apiPrefix: 'http://192.168.8.110:8015', // 测试环境外网
    apiGateway: 'http://192.168.8.110:9015', // 测试环境埋点
    // 加密相关参数
    encrypt: {
      supportSecurity: false,
      securitySign: 'kuZshtjxUgnHAu0qQX2JwVAOZIITcEyHhv0BrIV7DeI=',
      securityMerchantsNo: '20020000028',
      securityMerchantsCode: 'uzone'
    }
  },

  sat2: {

    apiPrefix: 'http://test-ph02appapi.myuangxpress.com:2062', // 测试环境
    apiGateway: 'http://test-ph02gateway.myuangxpress.com:2087', // 测试环境网关
    // 加密相关参数
    encrypt: {
      supportSecurity: false,
      securitySign: 'kuZshtjxUgnHAu0qQX2JwVAOZIITcEyHhv0BrIV7DeI=',
      securityMerchantsNo: '20020000028',
      securityMerchantsCode: 'uzone'
    }
  },

  uat: {

  },

  fat: {
    apiPrefix: 'http://192.168.100.152:8062', // 测试环境
    apiGateway: 'http://192.168.100.152:8087', // 测试环境网关
    // 加密相关参数
    encrypt: {
      supportSecurity: false,
      securitySign: 'kuZshtjxUgnHAu0qQX2JwVAOZIITcEyHhv0BrIV7DeI=',
      securityMerchantsNo: '20020000028',
      securityMerchantsCode: 'uzone'
    }
  },

  prod: {
    apiPrefix: 'https://apiprod.moregold.top', // 生产app-api
    apiGateway: 'https://point.moregold.top', // 生产环境埋点
    // apiGateway: 'https://fcgateway.cocopesos.com', // 生产网关
    // apiPrefix: 'https://api.takecash.top:18062', // 生产app-api
    // apiGateway: 'https://gateway.takecash.top:18087', // 生产网关
    // 加密相关参数
    encrypt: {
      supportSecurity: false,
      securitySign: 'quPgzMQLseycylxAU8ExAfoCwmTOHDVsgOd2zyCRzcQ=',
      securityMerchantsNo: '20010000011',
      securityMerchantsCode: 'uedit'
    }
  }
};

const curEnvConfig = envConfig[process.env.ENV];

export default curEnvConfig;

